package com.yanmk.order.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @program: cloud-demo
 * @description:
 * @author: Mr.Yan
 * @create: 2025-02-04 21:59
 **/
@Configuration
public class OrderServiceConfig {
@LoadBalanced // 开启负载均衡
@Bean
public RestTemplate restTemplate() {
    return new RestTemplate();
}
}
